<div class="row-fluid sortable">
	<div class="box span12">
           
		<div class="box-header well" data-original-title>
			<h2>
				<i class="icon-edit"></i>Dashboard
			</h2>
		</div> 

		<div class="box-content">
			<?php if($this->session->userdata('usertype') == 1):?>
			<table width="100%" height="100%">
				<tr>
					<td><a href="<?php echo site_url() ?>"> <img alt="Charisma Logo"
							src="<?php echo base_url('src/icon/home.png') ?>" /> <span>Home</span>
					</a></td>
					<td><a href="<?php echo site_url('report/item_report') ?>"> <img
							alt="Charisma Logo"
							src="<?php echo base_url('src/icon/status.png') ?>" /> <span>Status</span>
					</a></td>
					<td><a href="<?php echo site_url('welcome/add_order') ?>"> <img
							alt="Charisma Logo"
							src="<?php echo base_url('src/icon/order.png') ?>" /> <span>Vào
								bàn</span>
					</a></td>
				</tr>
				<tr>
					<td><a href="<?php echo site_url('welcome/items') ?>"> <img
							alt="Charisma Logo"
							src="<?php echo base_url('src/icon/item.png') ?>" /> <span>Thực
								đơn</span>
					</a></td>
					<td><a href="<?php echo site_url('welcome/cate') ?>"> <img
							alt="Charisma Logo"
							src="<?php echo base_url('src/icon/category.png') ?>" /> <span>Danh
								mục</span>
					</a></td>
					<td><a href="<?php echo site_url('welcome/orders') ?>"> <img
							alt="Charisma Logo"
							src="<?php echo base_url('src/icon/hoadon.png') ?>" /> <span>Hóa
								đơn</span>
					</a></td>
				</tr>
				<tr>
					<td><a href="<?php echo site_url('welcome/reports') ?>"> <img
							alt="Charisma Logo"
							src="<?php echo base_url('src/icon/report.png') ?>" /> <span>Báo
								cáo</span>
					</a></td>
					<td><a href="<?php echo site_url('welcome/month_reports') ?>"> <img
							alt="Charisma Logo"
							src="<?php echo base_url('src/icon/thongke.png') ?>" /> <span>Thống
								kê</span>
					</a></td>
					<td><a href="<?php echo site_url('welcome/users') ?>"> <img
							alt="Charisma Logo"
							src="<?php echo base_url('src/icon/user.png') ?>" /> <span>User</span>
					</a></td>
				</tr>
				<tr>
					<td><a href="<?php echo site_url('welcome/tables') ?>"> <img
							alt="Charisma Logo"
							src="<?php echo base_url('src/icon/table.gif') ?>" /> <span>Bàn</span>
					</a></td>
					<td><a href="<?php echo site_url('welcome/logout') ?>"> <img
							alt="Charisma Logo"
							src="<?php echo base_url('src/icon/logout.png') ?>" /> <span>Logout</span>
					</a></td>

				</tr>
			</table>
			<?php elseif($this->session->userdata('usertype') == 2):?>
			<table width="100%" height="100%">
				<tr>
					<td><a href="<?php echo site_url() ?>"> <img alt="Charisma Logo"
							src="<?php echo base_url('src/icon/home.png') ?>" /> <span>Home</span>
					</a></td>
					<td><a href="<?php echo site_url('report/item_report') ?>"> <img
							alt="Charisma Logo"
							src="<?php echo base_url('src/icon/status.png') ?>" /> <span>Status</span>
					</a></td>
					<td><a href="<?php echo site_url('welcome/add_order') ?>"> <img
							alt="Charisma Logo"
							src="<?php echo base_url('src/icon/order.png') ?>" /> <span>Vào
								bàn</span>
					</a></td>
				</tr>
				<tr>
					<td><a href="<?php echo site_url('welcome/orders') ?>"> <img
							alt="Charisma Logo"
							src="<?php echo base_url('src/icon/hoadon.png') ?>" /> <span>Hóa
								đơn</span>
					</a></td>
					<td><a href="<?php echo site_url('welcome/logout') ?>"> <img
							alt="Charisma Logo"
							src="<?php echo base_url('src/icon/logout.png') ?>" /> <span>Logout</span>
					</a></td>
				</tr>
			</table>
			<?php elseif($this->session->userdata('usertype') == 3):?>
<!--			<table width="100%" height="100%">
				<tr>
					<td><a href="<?php echo site_url() ?>"> <img alt="Charisma Logo"
							src="<?php echo base_url('src/icon/home.png') ?>" /> <span>Home</span>
					</a></td>
					<td><a href="<?php echo site_url('welcome/orders') ?>"> <img
							alt="Charisma Logo"
							src="<?php echo base_url('src/icon/hoadon.png') ?>" /> <span>Hóa
								đơn</span>
					</a></td>
					<td><a href="<?php echo site_url('welcome/add_order') ?>"> <img
							alt="Charisma Logo"
							src="<?php echo base_url('src/icon/order.png') ?>" /> <span>Vào
								bàn</span>
					</a></td>
				</tr>
				<tr>
					<td><a href="<?php echo site_url('welcome/logout') ?>"> <img
							alt="Charisma Logo"
							src="<?php echo base_url('src/icon/logout.png') ?>" /> <span>Logout</span>
					</a></td>
				</tr>
			</table>-->
			<?php else:?>
			Dashboard
			<?php endif;?>

		</div>
	</div>
	<!--/span-->

</div>
<div class="row-fluid sortable">
	<div class="box span12">
		<div class="box-header well" data-original-title>
			<h2>
				<i class="icon-edit"></i>Bàn
			</h2>
		</div>


		<div class="box-content">
			<?php //if($this->session->userdata('usertype') == 1):?>
			<table
				class="table table-striped table-bordered bootstrap-datatable datatable">
				<thead>
					<tr>
						<th>Số TT</th>
						<th>Tên bàn</th>
						<th>Loại bàn</th>
						<th>Actions</th>
					</tr>
				</thead>
				<tbody>
					<?php $i =0; ?>
					<?php foreach($tables as $table):?>
					<?php $i = $i +1;?>
					<tr>
						<td><?php echo $i; ?></td>
						<td><a
							href="<?php echo site_url('welcome/edit_tables/'.$table->id);?>">
								<?php echo $table->table_name;?>
						</a></td>
						<td class="center"><?php echo $table->table_type; ?></td>

						<td class="center"><?php if($table->status == 1):?><a
							href="<?php echo site_url('welcome/add_order/'.$table->id);?>">Vào bàn</a>
							&nbsp; <?php else: echo "Đã vào bàn";?> <?php endif;?>
						</td>
					</tr>
					<?php endforeach;?>
				</tbody>
			</table>
			<?php //endif;?>

		</div>
	</div>
	<!--/span-->

</div>
<!--/row-->
